// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// 引入vant
import Vant from 'vant';
import 'vant/lib/index.css';
import App from './App'
// 引入路由
import router from './router'
// 引入echats，并且挂载到vue原型当中
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
// 引入session
import VueSession from 'vue-session'
Vue.use(VueSession)
// 引入cookie
import VueCookies from 'vue-cookies'
Vue.use(VueCookies)
// 设置全局配置，设置cookie过期时间和url
// this.$cookies.config(expireTimes["30d","/app"])  // default: expireTimes = 1d , path=/
// 解决pc端touch问题
import '@vant/touch-emulator';

Vue.config.productionTip = false
// 挂载vant
Vue.use(Vant);
// 引入vuex
import store from "@/store/store";

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
